﻿using UnityEngine;
using System.Collections;
using ProtoBuf;
public class NetConst 
{
    public const byte JoinRoom = 1;
    public const byte JointRoom_Resp = 2;//加入房间相应
    public const byte PlayerLeavel = 3;//玩家离开房间
    public const byte PlayerJoin = 4;//玩家加入房间
    public const byte Ping = 5;//心跳
    public const byte ConnectResp = 6;//连接许可
    public const byte StartGame = 7;//开始游戏
    public const byte OnPlayerUpdate = 8; //玩家更新

    public const byte OnObjectUpdate = 20;//场景内的同步物体

    public const byte OnPlayerSpwan = 30;
    public const byte OnObjectSpwan = 31;
    public const byte OnPlayerShot = 32; //玩家发射子弹
}


